<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>


    let a, b, c, d, e;
    let sum = 0;
    for (a = 0; a <= 5; a++) {
      for (b = 0; b <= 10; b++) {
        for (c = 0; c <= 20; c++) {
          for (d = 0; d <= 50; d++) {
            for (e = 0; e <= 100; e++) {
              if (a * 5 + b * 10 + c * 20 + d * 50 + e == 100 && a + b + c + d + e == 30) {
                sum++;
              }
            }
          }
        }
      }
    }
    console.log(sum);




    // console.log(day);


  </script>
</body>

</html>